package com.example.model.query;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.model.entity.TPlan;
import com.example.model.entity.TPlanRecord;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 *  实体类
 *
 * @author zhangr
 * @Description Created on 2020-12-11
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TPlanQuery extends Page<TPlan> {

    /**
     * 预案id
     */
    private String planId;

    /**
     * 联动方式(单呼，组呼，短信，广播)
     */
    private Long planType;

    /**
     * 联动号码
     */
    private String callTel;

    /**
     * 联动组id
     */
    private String groupId;

    /**
     * 有效性
     */
    private Long isValid;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createDate;

    /**
     * 修改时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateDate;

    /**
     * 备注
     */
    private String remarks;

    /**
     * 短信内容
     */
    private String smsContent;

    /**
     * 广播文件
     */
    private String broadcastFile;

    /**
     * 摄像头
     */
    private String videoId;

    private String planNum;
    private String planName;
    private Long broadcastNum;
    private Long broadcastLevel;
    private String broadcastFileName;
}
